package com.cxm.weilai.util;

/**
 * @Description 数据同步服务方法
 * @author zjs
 * @time 2015-12-24 上午11:03:06
 * @version 1.0
 */
public class ObtainUsersService {
    private static String reqURL = ReadConfigParam.getReqURL();
    private static String conURL = ReadConfigParam.getConURL();

    public static boolean importVmVehicleTrack() throws Exception {
        String url = reqURL + "?" + ReadConfigParam.getReqStr();
        String strJson = ObtainDatasourceUtil.httpClientGet(url, "");
        if (strJson != null && strJson.length() > 0) {
            String reqStr = strJson;
            String str = ObtainDatasourceUtil.httpClientPost(conURL, reqStr);
            if ("success".equals(str)) { return true; }
            return false;
        }

        return false;

    }

}
